package com.test.springmvc;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/head")
public class HeadCtrl {
    @RequestMapping("/h")
    public String head(@RequestHeader(value = "Accept-language") String language)
    {
        System.out.println(language);
        return "login";
    }

}
